"""
@author: xiangping
@contact: xiangpingbu@gmail.com
@time: 2020/1/2 6:50 下午
@file: response_filter.py
@Desc:
"""

from flask import current_app

from app.controllers.gaolu_controller import gaolu_bp
from app.controllers.test_controller import ping_bp


# @gaolu_bp.after_request
@ping_bp.after_request
def response_process(response):
    #   TODO: pure Test purpose, change it in real case
    current_app.logger.info('Response Body: %s', response.get_data())
    return response
